#ifndef QMYSELFVIDEOWIDGET_H
#define QMYSELFVIDEOWIDGET_H

#include <QVideoWidget>
#include <QWidget>
#include <QObject>
#include <QMediaPlayer>

#include <QKeyEvent>
#include <QMouseEvent>

class QMyselfVideoWidget : public QVideoWidget
{
public:
    QMyselfVideoWidget(QWidget *parent=Q_NULLPTR);

    void setMediaPlayer(QMediaPlayer *player);

private:
    QMediaPlayer *thePlayer;

protected:
    void keyPressEvent(QKeyEvent *event);
    void mousePressEvent(QMouseEvent *event);
};

#endif // QMYSELFVIDEOWIDGET_H
